package com.huawei.appgallery.horizontalcard.api.bean;

import com.huawei.appgallery.foundation.card.base.bean.BaseDistCardBean;
import com.huawei.appgallery.foundation.card.base.normal.bean.NormalCardBean;
import java.util.List;
import java.util.ListIterator;

public class BaseHorizontalModuleCardBean<T extends BaseDistCardBean> extends NormalCardBean {
    public static final int DEFAULT_NORMAL_NUM = 3;
    private static final long serialVersionUID = 5703627462762930000L;
    protected int firstPageNum = 12;
    protected boolean hasMore = true;
    protected int hasNextPage_ = 1;
    protected int height;
    private List<T> list;
    protected int maxFilterNum = -1;
    protected int nextPageNum = 2;
    protected int offset = 0;
    protected int position = 0;

    public boolean ˋ(int i) {
        if (ʻˋ() == null) {
            return true;
        }
        this.firstPageNum = ʻˋ().size();
        ʼˋ();
        ListIterator listIterator = ʻˋ().listIterator(0);
        while (listIterator.hasNext() && ʻˋ().size() > ʼˊ()) {
            if (((BaseDistCardBean) listIterator.next()).ˋ(i)) {
                listIterator.remove();
            }
        }
        return false;
    }

    public void ʼˋ() {
    }

    public int ʼˊ() {
        return 3;
    }

    public List<T> ʻˋ() {
        return ʼᐝ();
    }

    public int ﾟ() {
        return this.position;
    }

    public void ᐝ(int i) {
        this.position = i;
    }

    public int ʻᐝ() {
        return this.offset;
    }

    public void ʽ(int i) {
        this.offset = i;
    }

    public int ʻˊ() {
        return this.firstPageNum;
    }

    public boolean ʽᐝ() {
        return this.hasMore;
    }

    public void ॱ(boolean z) {
        this.hasMore = z;
    }

    public int ʽˋ() {
        return this.nextPageNum;
    }

    public void ॱˊ(int i) {
        this.nextPageNum = i;
    }

    public int ʾॱ() {
        return this.hasNextPage_;
    }

    protected List ʼᐝ() {
        return null;
    }
}
